package cn.zyq.ykb.controller.h5.config;

import cn.zyq.ykb.beans.config.ConfigTaskType;
import cn.zyq.ykb.service.config.ConfigTaskTypeService;
import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.system.common.PageParam;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

/**
 * 刷新道具配置Controller
 *
 * @author SystemAuth
 * @date 2023-05-24
 */

@RestController(value = "H5ConfigBreakController")
@RequestMapping("/api/configTaskType")
@Api(tags = "配置-任务类型")
public class ConfigTaskTypeController extends BaseController {

    @Autowired
    private ConfigTaskTypeService configTaskTypeService;

    /**
     * 查询配置-任务类型列表
     */
    @ApiOperation(value = "列表", response = ConfigTaskType.class)
    @PostMapping("/list")
    public Object list(@RequestBody PageParam pageParam) {
        return this.configTaskTypeService.selectConfigTaskTypeList(pageParam);
    }

}
